package com.adinall.dsp.core.data;

import java.io.Serializable;

import com.adinall.dsp.core.utils.StringUtils;

/**
 * Key-Value Bean
 * 
 * @author 高万超
 * @version V1.0.0 $ 2017年6月21日 下午12:48:58
 */
public class KeyValueBeanOld implements Serializable {

    private int key;
    private String value;

    public KeyValueBeanOld() {
    }

    public KeyValueBeanOld(int key, String value) {
        this.key = key;
        this.value = value;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String toString() {

        StringBuilder buf = new StringBuilder();

        buf.append("{");
        buf.append("\"key\":");
        buf.append(key);
        buf.append(",");
        buf.append("\"value\":");
        buf.append(value);
        buf.append("}");

        return StringUtils.toString(buf);
    }
}